package com.atguigu.cloud;

import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.context.config.annotation.RefreshScope;

@SpringBootApplication
@EnableDiscoveryClient
@RefreshScope // 动态刷新consul配置，目前实测没有注解也能实时刷新（应该写在控制器上）
@Slf4j
public class Main80 {
    public static void main(String[] args) {
        log.info("Main80开始启动");
        SpringApplication.run(Main80.class,args);
    }
}